package com.bdd.crowd.mvc.handler;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author banddong
 * @create 2020-09-02 23:21
 * 测试Ajax
 */
@Controller
public class Test {


    @ResponseBody
    @RequestMapping(value = "/test/ajax/async.html")
    public String testAsync() throws InterruptedException {

        Thread.sleep(2000);

        return "success";
    }


}
